package cn.iocoder.yudao.module.vote.convert.voteinfo;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.vote.controller.admin.voteinfo.vo.*;
import cn.iocoder.yudao.module.vote.dal.dataobject.voteinfo.VoteInfoDO;

/**
 * 投票规则 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface VoteInfoConvert {

    VoteInfoConvert INSTANCE = Mappers.getMapper(VoteInfoConvert.class);

    VoteInfoDO convert(VoteInfoCreateReqVO bean);

    VoteInfoDO convert(VoteInfoUpdateReqVO bean);

    VoteInfoRespVO convert(VoteInfoDO bean);

    VoteInfoDO convertDO(VoteInfoDO bean);

    List<VoteInfoRespVO> convertList(List<VoteInfoDO> list);

    PageResult<VoteInfoRespVO> convertPage(PageResult<VoteInfoDO> page);

    List<VoteInfoExcelVO> convertList02(List<VoteInfoDO> list);

}
